package com.example.work4jpa.Dao;

import com.example.work4jpa.Entity.Course;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CourseDao extends JpaRepository<Course,Integer> {
    List<Course> findAll();
    Course save(Course course);
    Course findByName(String name);
    void deleteByName(String name);
    Page<Course> findAll(Pageable pageable);
}
